/**
 * 
 */
package com.sf.osms.dep.groovy

import com.sf.osms.dep.domain.Router
import java.util.List
import java.util.Map
import org.slf4j.Logger
import org.slf4j.LoggerFactory


/**
 * @author sfhq1405
 *
 */
public class XmlChangeAttribute implements GroovyInterface{

	private static Logger logger = LoggerFactory.getLogger("XmlChangeAttribute");
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#hanleCorrectRoutersList(java.util.List)
	 */
	public void hanleCorrectRoutersList(List list){
		list.each{
			if(it.eventCode == 44 && it.agentWaybill != null){
				it.extendAttach3 = it.agentWaybill
				logger.info("代理单号"+it.agentWaybill);
				logger.info("extendAttach3"+it.extendAttach3);
			}
		}
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleOrginalRouter(java.util.Map)
	 */
	public void handleSimgleOrginalRouter(Map map){
		// TODO Auto-generated method stub
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleRouter(com.sf.osms.dep.domain.Router)
	 */
	public void handleSimgleRouter(Router router){
		// TODO Auto-generated method stub
	}
	
}
